using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RobotSimulator.Basic
{
    public class BasicRobot : BasicPublisher
    {
        public BasicActuator[] actuators;
        public BasicSensor[] sensors;
        public float Mass
        {
            get
            {
                return rb.mass;
            }
        }
        public Rigidbody rb;
        protected override void Start()
        {
            base.Start();
            actuators = GetComponentsInChildren<BasicActuator>();
            sensors = GetComponentsInChildren<BasicSensor>();
            if (rb == null)
            {
                rb = GetComponent<Rigidbody>();
            }
            
        }
        protected override void Loop()
        {

        }

        protected virtual void Work()
        {
        }
        protected virtual void Sleep()
        {
        }
    }
}

